package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.BusinessContactMapper;
import com.wanmait.baohan.pojo.BusinessContact;
import com.wanmait.baohan.service.BusinessContactService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class BusinessContactServiceImpl implements BusinessContactService {
    @Resource
    private BusinessContactMapper businessContactMapper;

    @Override
    public void insert(BusinessContact object) {
        businessContactMapper.insert(object);
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(BusinessContact object) {

    }

    @Override
    public BusinessContact findById(Integer id) {
        return businessContactMapper.selectByPrimaryKey(id);
    }


    @Override
    public List findAll() {
        return null;
    }

    @Override
    public List<BusinessContact> findAll(BusinessContact object) {
        return null;
    }



    @Override
    public PageInfo findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo findPage() {
        return null;
    }

    @Override
    public PageInfo<BusinessContact> findPage(int pageNum, BusinessContact object) {
        return null;
    }

    @Override
    public PageInfo<BusinessContact> findPage(BusinessContact object) {
        return null;
    }


    @Override
    public List<BusinessContact> selectAllBusinessContactBy(Integer id) {
        return businessContactMapper.selectAllBusinessContactBy(id);
    }

    @Override
    public List<BusinessContact> findAllBy(BusinessContact businessContact) {
        return businessContactMapper.findAllBy(businessContact);
    }

    @Override
    public BusinessContact findOneBy(Integer id) {
        return businessContactMapper.findOneBy(id);
    }
}
